﻿using System;

namespace FluentIoC.Helpers
{
    public static class TypeHelpers
    {
        public static bool Implements(this Type type, Type i)
        {
            return (null != type.GetInterface(i.FullName)) || type.Equals(i);
        }

        public static string GetDefaultKey(this Type type)
        {
            return type.Name;
        }
    }
}
